# Maintainer: Norberto Lopes <shelika@mail.telepac.pt>
# Contributor: Kao Dome <kaodome@gmail.com>
# Contributor: Dmitrij D. Czarkoff <czarkoff@gmail.com>
# Contributor: Mathias Rohnstock <linksoft@gmx.de>
pkgname=libmicrohttpd
pkgver=0.9.1
pkgrel=2
pkgdesc="a small C library that is supposed to make it easy to run an HTTP server as part of another application."
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/libmicrohttpd/"
license=('LGPL')
options=(!libtool)
depends=('gnutls')
source=(ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz)
sha256sums=('377e31d419a82c11606d4e2cd1a83bf8c57af9d11f3974a6ad0296a75dbba306')

build() {
	cd ${pkgname}-${pkgver}
	./configure --prefix=/usr --disable-dependency-tracking --enable-largefile --enable-curl --enable-messages --with-pic
	make
}

package() {
	cd ${pkgname}-${pkgver}
	make DESTDIR=${pkgdir} install
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/platform.h \
		${pkgdir}/usr/include/platform.h
	install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/plibc/plibc.h \
		${pkgdir}/usr/include/plibc.h
}
